package inputs;

/**
 * Class to contain a counter.
 * Increments by 1 in each update.
 * 
 * @author Dylan James
 *
 */
public class Counter extends Input{
	
	private Integer count;
	
	public Counter(int initalValue)
	{
		super();
		this.count = initalValue;
		this.min = 0;
	}
	public Counter()
	{
		this(0);
	}
	
	public Counter(Integer min, Integer max)
	{
		super(min, max);
		this.count = 0;
	}

	protected void Update() {
		this.count++;
	}

	public int getValue() {
		return count;
	}
}
